package com.flyer.jfinal.jfinalEntity;

import java.io.IOException;
import java.sql.SQLException;

import com.flyer.jfinal.createEntity.EntityBuilder;

import freemarker.template.TemplateException;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws SQLException, IOException, TemplateException
    {
		new DemoConfig().configPlugin();
//		JobApply apply=JobApply.dao.findById(32);
//		Page<JobApply> xxPage = apply.paginate(1, 10, "SELECT apply.*", "FROM TBL_JN_JOB_APPLY apply LEFT JOIN TBL_JN_JOB job on apply.job_Id=job.id");
//		System.out.append(apply.getEmployeeId());
//    	System.out.print(ColumnNameUtil.columnNameToAttr("TBL_JN_JOB_APPLY"));
		new EntityBuilder().build("createEntity.properties", "entity.ftl");
	}
}
